
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;

public class IODemo1 {
    public static void main(String[] args) {
        try(OutputStream writ = new FileOutputStream("D:/tmp.txt",true)) {
            writ.write('F');
            writ.write('F');
            writ.write('F');
            writ.write('F');
            writ.write('F');
            writ.flush();
        }  catch (IOException e) {
            throw new RuntimeException(e);
        }
    }
}
